<?php
defined('IN_SITE') or exit('Access Denied');
if($dosubmit)
{
	$setting['enabledkey'] = ',';
	if($enabledkeys){
		foreach($enabledkeys as $key)
		{
			$setting['enabledkey'] .= $key.",";
		}
	}
	module_setting($module, $setting);
	showmessage($LANG['save_setting_success'], HTTP_REFERER);
}
else
{
	@extract(new_htmlspecialchars($M));
	include admin_tpl('setting');
}
?>